using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Permissions;
using System.Web;
using System.ComponentModel;
using System.Web.UI;

namespace CodeStory.WebControls
{
	[AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
	public class LinkItem : BaseLinkItem
	{
		public override string ToHtmlString(Control page) {
			StringBuilder sb = new StringBuilder();
			sb.Append("CodeStoryHeadLink.RegisterItem({src:'");
			string src = page.ResolveClientUrl(Href);
			sb.Append(src);
			sb.Append ("',innertype:0});");
			return sb.ToString();
		}
	}
}
